//
//  EOCNetworkFetcher.h
//  MacTestProject
//
//  Created by LiuLichen on 2022/4/26.
//

#import <Foundation/Foundation.h>

#import "EOCNetworkFetcherDelegate.h"

NS_ASSUME_NONNULL_BEGIN

typedef void (^EOCNetworkFetcherCompletionHandler) (NSData* data);

@interface EOCNetworkFetcher : NSObject

@property (nonatomic, weak) id<EOCNetworkFetcherDelegate> delegate;

@property (nonatomic, strong, readonly) NSURL* url;

- (id) initWithURL: (NSURL*)url;
- (void) startWithCompletionHandler: (EOCNetworkFetcherCompletionHandler)handler;

@end

NS_ASSUME_NONNULL_END
